From e420ef1e7381ce0b25c8f66c1cab2d622cffd385 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 27 May 2009 11:19:38 +0100 Subject: [PATCH] rombios: fix trying to boot from next device If boot="ndc", rombios cannot try to boot next device. Because rombios jump to the boot vector without pushing return address, gPXE code and so on cannot return if it fail to boot. Signed-off-by: Akio Takebe --- tools/firmware/rombios/rombios.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/firmware/rombios/rombios.c b/tools/firmware/rombios/rombios.c index 0aea421e17..94f9a9b521 100644 --- a/tools/firmware/rombios/rombios.c +++ b/tools/firmware/rombios/rombios.c @@ -8362,8 +8362,8 @@ ASM_END /* Jump to the boot vector */ ASM_START mov bp, sp -// push cs -// push #int18_handler + push cs + push #int18_handler ;; Build an iret stack frame that will take us to the boot vector. ;; iret pops ip, then cs, then flags, so push them in the opposite order. pushf -- 2.30.2